<%--
  Created by IntelliJ IDEA.
  User: 小正
  Date: 2024/11/18
  Time: 下午3:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>班级修改页面</title>
    <style>
        body, html {
            height: 100%;
            margin: 0;
        }

        .container {
            background-image: linear-gradient(to right, rgb(196, 208, 255), rgb(196, 232, 255));
            padding: 20px;
            border-radius: 8px;
            min-height: 100%; /* 使容器至少占据整个视口的高度 */

        }

    </style>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
          integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
            integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
            crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
    <form method="post" action="/student?action=edit">
        <div class="mb-3">
            <label class="form-label">姓名</label>
            <input type="text" class="form-control" name="stuName" value="${student.stuName}"
                   aria-describedby="passwordHelpBlock">
        </div>
        <div class="mb-3">
            <label class="form-label">性别</label>
            <input type="text" class="form-control" name="sex" value="${student.sex}"
                   aria-describedby="passwordHelpBlock">
        </div>
        <div class="mb-3">
            <label class="form-label">通讯地址</label>
            <input type="text" class="form-control" name="address" value="${student.address}"
                   aria-describedby="passwordHelpBlock">
        </div>
        <div class="mb-3">
            <label class="form-label">学生电话</label>
            <input type="text" class="form-control" name="stuTel" value="${student.stuTel}"
                   aria-describedby="passwordHelpBlock">
        </div>
        <div class="mb-3">
            <label class="form-label">联系人</label>
            <input type="text" class="form-control" name="contact" value="${student.contact}"
                   aria-describedby="passwordHelpBlock">
        </div>
        <div class="mb-3">
            <label class="form-label">联系人电话</label>
            <input type="text" class="form-control" name="contactTel" value="${student.contactTel}"
                   aria-describedby="passwordHelpBlock">
        </div>
        <div class="mb-3">
            <label class="form-label">密码</label>
            <input type="text" class="form-control" name="password" value="${student.password}"
                   aria-describedby="passwordHelpBlock">
        </div>
        <div class="mb-3 text-center">
            <button type="submit" class="btn btn-primary">修改</button>
        </div>
    </form>
</div>
</body>
</html>
